import { DEFAULT_LAYOUT } from "../base"
import { AppRouteRecordRaw } from "../types"

const USER: AppRouteRecordRaw = {
  path: "/policy",
  name: "policy",
  component: DEFAULT_LAYOUT,
  meta: {
    locale: "menu.policy",
    icon: "icon-tool",
    requiresAuth: true,
    order: 7
  },
  children: [
    {
      path: "policyCheck",
      name: "PolicyCheck",
      component: () => import("@/views/policy/policyCheck/index.vue"),
      meta: {
        locale: "检测策略管理",
        requiresAuth: true,
        roles: ["*"]
      }
    },
    {
      path: "testing",
      name: "Testing",
      component: () => import("@/views/policy/testing/index.vue"),
      meta: {
        locale: "检测厂商管理",
        requiresAuth: true,
        roles: ["*"]
      }
    },
    {
      path: "mapping",
      name: "Mapping",
      component: () => import("@/views/policy/mapping/index.vue"),
      meta: {
        locale: "测绘厂商管理",
        requiresAuth: true,
        roles: ["*"]
      }
    },
    {
      path: "scans",
      name: "Scans",
      component: () => import("@/views/policy/scans/index.vue"),
      meta: {
        locale: "漏扫工具管理",
        requiresAuth: true,
        roles: ["*"]
      }
    }
  ]
}

export default USER
